<?php 
include("header.php");

?>	
                
                               
		
	<div class="container">
		<div class="row">
	<?php
	include("sidebar.php");
    
    $modul = $_GET['modul'];
    
    //echo $category;
    
    //$category=5;
    //$id=5;
    
    switch($modul){ 
    
    
    case "tkering":
        
        $produk = new Product_View($class_db);
    
        echo $produk->view_category(1);
    
    break;
    
    case "tbasah":
    $produk = new Product_View($class_db);
        echo $produk->view_category(2);
    break;
    
    case "mkering":
    $produk = new Product_View($class_db);
        echo $produk->view_category(3);
    break;
    
    case "mbasah":
    $produk = new Product_View($class_db);
        echo $produk->view_category(4);
    break;
    
    case "semua":
        $produk = new Product_View($class_db);
        echo $produk->view_category(5);
    break;

}
include("footer.php");
?>	
